package com.masc.gurr.net;
/*
 *  Gurr - A multiprotocol chat client for Android
 *  Copyright (C) 2011 Malte Aschermann, Wilfried Ramaker
 *  
 *  This file is part of Gurr.
 *  
 *  Gurr is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *  
 *  Gurr is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 *  
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with Gurr.  If not, see <http://www.gnu.org/licenses/>.
 */



import net.kano.joscar.snaccmd.FullUserInfo;

public class ContactStatus {
	
	private long status;
	
	public ContactStatus(long status) {
		this.status = status;
	}
	
	@Override
	public String toString() {
		if (status == FullUserInfo.ICQSTATUS_DEFAULT) 
			return "ICQSTATUS_DEFAULT";
		 	
		else if (status == FullUserInfo.ICQSTATUS_DEFAULT)
			return "ICQSTATUS_DEFAULT";
		
		else if (status == -1)
			return "OFFLINE?";
		
		else if (status == FullUserInfo.ICQSTATUS_AWAY)
			return "ICQSTATUS_AWAY";
		
		else if (status == FullUserInfo.ICQSTATUS_DND)
			return "ICQSTATUS_DND";
		
		else if (status == FullUserInfo.ICQSTATUS_INVISIBLE)
			return "ICQSTATUS_INVISIBLE";
		
		else if (status == FullUserInfo.ICQSTATUS_NA)
			return "ICQSTATUS_NA";
		
		else if (status == 0x10020000L)
			return "ONLINE";
		
		else if (status == 0x10020001L)
			return "AWAY";
		
		else if(status == 0x10020011)
			return "OCCUPIED";
		
		else if(status == 0x10020013)
			return "DND";
		
		else if(status == 0x10020005)
			return "NOT AVAILABLE";
		
		else
			return "?"+status;
			
	}

	public long getStatus() {
		return status;
	}

	public void setStatus(long status) {
		this.status = status;
	}
	
	
}
